package bug;

import bug.dao.hibernate.ProjectDaoHibernate;
import bug.dao.hibernate.UserDaoHibernate;
import bug.persistent.Project;
import bug.persistent.User;

import java.util.List;

/**
 * User: ion
 * Date: Aug 30, 2008 - 10:54:08 AM
 */

public class Main7 extends BaseMain {

    public static void main(String[] args) {
        new Main7().run();
    }

    public void run() {

        beginSession();

        List<Project> projects = projectDao.getAll();
        System.out.println(projects.size());
        for (Project p : projects) {
            //System.out.println("UserProjects size=" + p.getUserProjects().size());
        }
        endSession();
    }
}